<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>角色列表</title>
   <link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
</head>
<body>
	
<div id="container" style="background:#f2ffe3 url(${basePath}/admin/images/main_00.jpg) left top repeat-x;">
     <h3 style="height:30px;">
     <!-- <a class="button_50" href="${basePath}/admin/game/view">添加新纪录</a> -->
     </h3>
      <table class="dataTable">
          <tr>
	          <th>ID</th>
	          <th>标题</th>
	          <th>内容</th>
	          <th>评论时间</th>
	          <th>评分</th>
	          <th>点赞数</th>
	          <th>点弱数</th>
	          <th>是否显示</th>
	          <th>操作</th>
          </tr>
          <#list game_comments.list as g>
	          <tr>
		          <td>${g.id!}</td>
		          <td>${g.title!}</td>
		          <td><#if g.content?? && g.content?length gt 20>${g.content?substring(0,20)}<#else>${g.content!}</#if></td>
		          <td>${g.create_time?string('yyyy-MM-dd HH:mm:ss')}</td>
		          <td>${g.grade!}</td>
		          <td>${g.useful!}</td>
		          <td>${g.unuseful!}</td>
		          <td><#if g.is_check == -1>不显示<#else>显示</#if></td>
		          <td>
		          	<a href="${basePath}/admin/gamecomment/view?id=${g.id!}&game_id=${game_id!}">修改</a>
		          	<#if g.is_check?? && g.is_check == 1>
		          		<a href="${basePath}/admin/gamecomment/nocheck?id=${g.id!}&game_id=${game_id!}" onclick="return confirm('你确认要执行此操作?')">不显示</a>
		          	<#else>
		          		<a href="${basePath}/admin/gamecomment/check?id=${g.id!}&game_id=${game_id!}" onclick="return confirm('你确认要执行此操作?')">显示</a>
		          	</#if>
		          	<a href="${basePath}/admin/gamecomment/delete?id=${g.id!}" onclick="return confirm('你确认要删除这条记录?')">删除</a>
		          </td>
	          </tr>
          </#list>
   	</table>
   	
   	<#include "./common/_paginate.html" />
   	<@paginate currentPage = game_comments.pageNumber totalPage = game_comments.totalPage actionUrl = "/admin/gamecomment/index" />
  </div>

</body>
</html>